package com.Linngdu664.drglaserpointer;

import com.Linngdu664.drglaserpointer.event.LevelRenderEvent;
import com.Linngdu664.drglaserpointer.event.SoundPlayEvent;
import com.Linngdu664.drglaserpointer.item.ItemRegistry;
import com.Linngdu664.drglaserpointer.misc.SoundRegister;
import net.minecraftforge.common.MinecraftForge;
import net.minecraftforge.eventbus.api.IEventBus;
import net.minecraftforge.fml.common.Mod;
import net.minecraftforge.fml.javafmlmod.FMLJavaModLoadingContext;

@Mod(Main.MODID)
public class Main {
    public static final String MODID = "drglaserpointer";

    public Main() {
        IEventBus bus = FMLJavaModLoadingContext.get().getModEventBus();
        ItemRegistry.ITEMS.register(bus);
        SoundRegister.SOUNDS.register(bus);
        MinecraftForge.EVENT_BUS.register(new LevelRenderEvent());
        MinecraftForge.EVENT_BUS.register(new SoundPlayEvent());
//        MinecraftForge.EVENT_BUS.register(new MyEvent());
    }
}
